package pl.elka.simulator.mediator;

import java.util.ArrayList;
import java.util.List;

import pl.elka.simulator.core.IPaintable;
import pl.elka.simulator.core.Position;

public class ConstraintParts implements IPaintable{

	private List<Position> parts;

	public ConstraintParts() {
		super();
	}

	public ConstraintParts(List<Position> parts) {
		super();
		this.parts = parts;
	}

	public List<Position> getParts() {
		return parts;
	}

	public void setParts(List<Position> parts) {
		this.parts = parts;
	}
	public void addPart(Position part){
		if(parts == null){
			parts = new ArrayList<Position>();
		}
		parts.add(part);
	}
	
}
